from toee import *
from utilities import *

def san_dialog( attachee, triggerer ):
	attachee.turn_towards(triggerer)
	if (attachee.has_met( triggerer )):
		if anyone( triggerer.group_list(), "has_item", 4400 ):
			triggerer.begin_dialog( attachee, 120 )
			return SKIP_DEFAULT
		else:
			triggerer.begin_dialog( attachee, 100 )
			return SKIP_DEFAULT
	else:
		triggerer.begin_dialog( attachee, 1 )
	return SKIP_DEFAULT

def san_dying(attachee, triggerer):
	gun = attachee.item_find(4400)
	if gun != OBJ_HANDLE_NULL:
		gun.destroy()
	return RUN_DEFAULT

